* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 0.16rem;
}

header {
  width: 100%;
  height: 1rem;
  background-color: #e54847;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

header h2 {
  color: #fff;
  font-size: 0.36rem;
  font-weight: normal;
}

header .icon-ego-menu {
  color: #fff;
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.4rem;
}

nav {
  width: 100%;
  height: 0.88rem;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
}

nav .city {
  width: 1.24rem;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.24rem;
  color: #777;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.3rem;
  padding: 0 0.2rem;
}

nav ul li:first-child {
  font-size: 0.34rem;
  font-weight: 900;
  position: relative;
}

nav ul li:first-child::after {
  content: "";
  width: 0.3rem;
  height: 0.06rem;
  background-color: #e54847;
  position: absolute;
  bottom: 0.06rem;
  left: 50%;
  transform: translateX(-50%);
}

nav .icon-ai219 {
  width: 1rem;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.4rem;
  color: #e54847;
}

main {
  width: 100%;
  flex: 1;
}

main .top-rated {
  width: 100%;
  height: 4.1rem;
  padding: 0 0.3rem;
}

.title {
  height: 0.9rem;
  font-size: 0.3rem;
  display: flex;
  align-items: center;
}

.rated-list {
  width: 100%;
  height: 2.96rem;
  background-color: aqua;
  display: flex;
  /* 溢出添加滚动条 */
  overflow: auto;
}

.rated-item {
  width: 1.7rem;
  height: 100%;
  background-color: lightcoral;
  margin-right: 0.2rem;
  flex-shrink: 0;
}

.rated-item:last-child {
  margin-right: 0;
}

footer {
  width: 100%;
  height: 0.97rem;
  border-top: 1px solid #ccc;
}